﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="bootstrap.min.css" rel="stylesheet" />
    <link href="daterangepicker.css" rel="stylesheet" />   
    <script src="https://cdn.bootcss.com/jquery/2.1.0-beta2/jquery.js"></script>
    <script src="moment.min.js"></script>
    <script src="daterangepicker.js"></script>
</head>
<body>
    <div>
        <input type="text" name="" id="textSerchBookingDate" class="form-control js-single-date">
    </div>

    <script>
        $(function () {
            alert("dfdd");
            //var startV = new Date();
            //var endV = new Date(new Date().setDate(startV.getDate() + 30));
            //$('#textSerchBookingDate').daterangepicker({
            //    "startDate": "2019-06-01",
            //    "endDate": "2019-06-17",
            //});
            //$('#textSerchBookingDate').val("2019-06-14");
            

            $('#textSerchBookingDate').datetimepicker({
                format: 'yyyy-mm-dd hh:ii'
            });
        });
        //初始化一个日期
        //if (item.ControlType == "Calendar") {
        //            $("#Metadata-" + item.FieldName + "").datetimepicker({ format: "YYYY-MM-DD" });
        //            var m = moment().format("YYYY-MM-DD");
        //            $("#Metadata-" + item.FieldName + "").val(m);
        //}
        //初始化日期范围

    </script>
</body>
</html>